// import logo from './logo.svg';
import './App.css';
import './assets/css/reset.css'
import './assets/css/antd_theme.less'
import './assets/css/common.less'
import { updateState } from './store/store.js';
import Router from './router/router.jsx'
import { useEffect } from 'react';
const userInfo = localStorage.getItem('userInfo')
if (userInfo) {
    try {
        updateState({key: ['userInfo'], value: JSON.parse(userInfo)})
        updateState({key: ['isLogin'], value: true})
    } catch {
        new Error('用户信息转化错误！')
    }
}
function App() {
  useEffect(() => {
      console.log('555')
  })
  return (
    <div className="App">
      <Router></Router>
    </div>
  );
}

export default App;
